import request from '../utils/request.js'

// 获取公告列表
export function getAnnouncementList(params) {
  return request({
    url: '/selectAnnouncement/page',
    method: 'get',
    params
  })
}

// 获取公告详情
export function getAnnouncementDetail(id) {
  return request({
    url: `/announcement/${id}`,
    method: 'get'
  })
}

// 获取最新公告列表
export function getLatestAnnouncementList() {
  return request({
    url: '/getThreeAnnouncements',
    method: 'get'
  })
}
